<?php 
namespace app\index\service;

class Pub
{
    public function addServerUrl($url)
    {
        if($url){
            return url('/', '', true, true).$url;
        }else{
            return '';
        }
    }
    
    public function getMultiImages($value)
    {
        $rows = [];
        $arr = explode(',', $value);
        foreach ($arr as $item){
            if($item){
                $rows[] = $this->addServerUrl($item);
            }
        }
        return $rows;
    }
    
}